Optimal. Leaf size=44 \[ -\frac {a \sin ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {b \cos ^4(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2668, 641} \[ -\frac {a \sin ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {b \cos ^4(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 641
Rule 2668
Rubi steps
\begin {align*} \int \cos ^3(c+d x) (a+b \sin (c+d x)) \, dx &=\frac {\operatorname {Subst}\left (\int (a+x) \left (b^2-x^2\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac {b \cos ^4(c+d x)}{4 d}+\frac {a \operatorname {Subst}\left (\int \left (b^2-x^2\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac {b \cos ^4(c+d x)}{4 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 44, normalized size = 1.00 \[ -\frac {a \sin ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {b \cos ^4(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 39, normalized size = 0.89 \[ -\frac {3 \, b \cos \left (d x + c\right )^{4} - 4 \, {\left (a \cos \left (d x + c\right )^{2} + 2 \, a\right )} \sin \left (d x + c\right )}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.44, size = 48, normalized size = 1.09 \[ -\frac {3 \, b \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, b \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 36, normalized size = 0.82 \[ \frac {-\frac {\left (\cos ^{4}\left (d x +c \right )\right ) b}{4}+\frac {a \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 48, normalized size = 1.09 \[ -\frac {3 \, b \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, b \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 46, normalized size = 1.05 \[ \frac {-\frac {b\,{\sin \left (c+d\,x\right )}^4}{4}-\frac {a\,{\sin \left (c+d\,x\right )}^3}{3}+\frac {b\,{\sin \left (c+d\,x\right )}^2}{2}+a\,\sin \left (c+d\,x\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.23, size = 60, normalized size = 1.36 \[ \begin {cases} \frac {2 a \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {a \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} - \frac {b \cos ^{4}{\left (c + d x \right )}}{4 d} & \text {for}\: d \neq 0 \\x \left (a + b \sin {\relax (c )}\right ) \cos ^{3}{\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________